3.518 \(\int \frac{\tanh ^{-1}(x)}{\sqrt{a-a x^2}} \, dx\)

Optimal. Leaf size=144 \[ -\frac{i \sqrt{1-x^2} \text{PolyLog}\left (2,-\frac{i \sqrt{1-x}}{\sqrt{x+1}}\right )}{\sqrt{a-a x^2}}+\frac{i \sqrt{1-x^2} \text{PolyLog}\left (2,\frac{i \sqrt{1-x}}{\sqrt{x+1}}\right )}{\sqrt{a-a x^2}}-\frac{2 \sqrt{1-x^2} \tan ^{-1}\left (\frac{\sqrt{1-x}}{\sqrt{x+1}}\right ) \tanh ^{-1}(x)}{\sqrt{a-a x^2}} \]

[Out]

(-2*Sqrt[1 - x^2]*ArcTan[Sqrt[1 - x]/Sqrt[1 + x]]*ArcTanh[x])/Sqrt[a - a*x^2] - (I*Sqrt[1 - x^2]*PolyLog[2, ((
-I)*Sqrt[1 - x])/Sqrt[1 + x]])/Sqrt[a - a*x^2] + (I*Sqrt[1 - x^2]*PolyLog[2, (I*Sqrt[1 - x])/Sqrt[1 + x]])/Sqr
t[a - a*x^2]

________________________________________________________________________________________

Rubi [A]  time = 0.0543704, antiderivative size = 144, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.133, Rules used = {5954, 5950} \[ -\frac{i \sqrt{1-x^2} \text{PolyLog}\left (2,-\frac{i \sqrt{1-x}}{\sqrt{x+1}}\right )}{\sqrt{a-a x^2}}+\frac{i \sqrt{1-x^2} \text{PolyLog}\left (2,\frac{i \sqrt{1-x}}{\sqrt{x+1}}\right )}{\sqrt{a-a x^2}}-\frac{2 \sqrt{1-x^2} \tan ^{-1}\left (\frac{\sqrt{1-x}}{\sqrt{x+1}}\right ) \tanh ^{-1}(x)}{\sqrt{a-a x^2}} \]

Antiderivative was successfully verified.

[In]

Int[ArcTanh[x]/Sqrt[a - a*x^2],x]

[Out]

(-2*Sqrt[1 - x^2]*ArcTan[Sqrt[1 - x]/Sqrt[1 + x]]*ArcTanh[x])/Sqrt[a - a*x^2] - (I*Sqrt[1 - x^2]*PolyLog[2, ((
-I)*Sqrt[1 - x])/Sqrt[1 + x]])/Sqrt[a - a*x^2] + (I*Sqrt[1 - x^2]*PolyLog[2, (I*Sqrt[1 - x])/Sqrt[1 + x]])/Sqr
t[a - a*x^2]

Rule 5954

Int[((a_.) + ArcTanh[(c_.)*(x_)]*(b_.))^(p_.)/Sqrt[(d_) + (e_.)*(x_)^2], x_Symbol] :> Dist[Sqrt[1 - c^2*x^2]/S
qrt[d + e*x^2], Int[(a + b*ArcTanh[c*x])^p/Sqrt[1 - c^2*x^2], x], x] /; FreeQ[{a, b, c, d, e}, x] && EqQ[c^2*d
 + e, 0] && IGtQ[p, 0] &&  !GtQ[d, 0]

Rule 5950

Int[((a_.) + ArcTanh[(c_.)*(x_)]*(b_.))/Sqrt[(d_) + (e_.)*(x_)^2], x_Symbol] :> Simp[(-2*(a + b*ArcTanh[c*x])*
ArcTan[Sqrt[1 - c*x]/Sqrt[1 + c*x]])/(c*Sqrt[d]), x] + (-Simp[(I*b*PolyLog[2, -((I*Sqrt[1 - c*x])/Sqrt[1 + c*x
])])/(c*Sqrt[d]), x] + Simp[(I*b*PolyLog[2, (I*Sqrt[1 - c*x])/Sqrt[1 + c*x]])/(c*Sqrt[d]), x]) /; FreeQ[{a, b,
 c, d, e}, x] && EqQ[c^2*d + e, 0] && GtQ[d, 0]

Rubi steps

\begin{align*} \int \frac{\tanh ^{-1}(x)}{\sqrt{a-a x^2}} \, dx &=\frac{\sqrt{1-x^2} \int \frac{\tanh ^{-1}(x)}{\sqrt{1-x^2}} \, dx}{\sqrt{a-a x^2}}\\ &=-\frac{2 \sqrt{1-x^2} \tan ^{-1}\left (\frac{\sqrt{1-x}}{\sqrt{1+x}}\right ) \tanh ^{-1}(x)}{\sqrt{a-a x^2}}-\frac{i \sqrt{1-x^2} \text{Li}_2\left (-\frac{i \sqrt{1-x}}{\sqrt{1+x}}\right )}{\sqrt{a-a x^2}}+\frac{i \sqrt{1-x^2} \text{Li}_2\left (\frac{i \sqrt{1-x}}{\sqrt{1+x}}\right )}{\sqrt{a-a x^2}}\\ \end{align*}

Mathematica [A]  time = 0.0990153, size = 90, normalized size = 0.62 \[ -\frac{i \sqrt{a \left (1-x^2\right )} \left (\text{PolyLog}\left (2,-i e^{-\tanh ^{-1}(x)}\right )-\text{PolyLog}\left (2,i e^{-\tanh ^{-1}(x)}\right )+\tanh ^{-1}(x) \left (\log \left (1-i e^{-\tanh ^{-1}(x)}\right )-\log \left (1+i e^{-\tanh ^{-1}(x)}\right )\right )\right )}{a \sqrt{1-x^2}} \]

Warning: Unable to verify antiderivative.

[In]

Integrate[ArcTanh[x]/Sqrt[a - a*x^2],x]

[Out]

((-I)*Sqrt[a*(1 - x^2)]*(ArcTanh[x]*(Log[1 - I/E^ArcTanh[x]] - Log[1 + I/E^ArcTanh[x]]) + PolyLog[2, (-I)/E^Ar
cTanh[x]] - PolyLog[2, I/E^ArcTanh[x]]))/(a*Sqrt[1 - x^2])

________________________________________________________________________________________

Maple [A]  time = 0.354, size = 210, normalized size = 1.5 \begin{align*}{\frac{i{\it Artanh} \left ( x \right ) }{a \left ({x}^{2}-1 \right ) }\ln \left ( 1+{i \left ( 1+x \right ){\frac{1}{\sqrt{-{x}^{2}+1}}}} \right ) \sqrt{-{x}^{2}+1}\sqrt{- \left ( -1+x \right ) \left ( 1+x \right ) a}}-{\frac{i{\it Artanh} \left ( x \right ) }{a \left ({x}^{2}-1 \right ) }\ln \left ( 1-{i \left ( 1+x \right ){\frac{1}{\sqrt{-{x}^{2}+1}}}} \right ) \sqrt{-{x}^{2}+1}\sqrt{- \left ( -1+x \right ) \left ( 1+x \right ) a}}+{\frac{i}{a \left ({x}^{2}-1 \right ) }{\it dilog} \left ( 1+{i \left ( 1+x \right ){\frac{1}{\sqrt{-{x}^{2}+1}}}} \right ) \sqrt{-{x}^{2}+1}\sqrt{- \left ( -1+x \right ) \left ( 1+x \right ) a}}-{\frac{i}{a \left ({x}^{2}-1 \right ) }{\it dilog} \left ( 1-{i \left ( 1+x \right ){\frac{1}{\sqrt{-{x}^{2}+1}}}} \right ) \sqrt{-{x}^{2}+1}\sqrt{- \left ( -1+x \right ) \left ( 1+x \right ) a}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(arctanh(x)/(-a*x^2+a)^(1/2),x)

[Out]

I*ln(1+I*(1+x)/(-x^2+1)^(1/2))*arctanh(x)*(-x^2+1)^(1/2)*(-(-1+x)*(1+x)*a)^(1/2)/a/(x^2-1)-I*ln(1-I*(1+x)/(-x^
2+1)^(1/2))*arctanh(x)*(-x^2+1)^(1/2)*(-(-1+x)*(1+x)*a)^(1/2)/a/(x^2-1)+I*dilog(1+I*(1+x)/(-x^2+1)^(1/2))*(-x^
2+1)^(1/2)*(-(-1+x)*(1+x)*a)^(1/2)/a/(x^2-1)-I*dilog(1-I*(1+x)/(-x^2+1)^(1/2))*(-x^2+1)^(1/2)*(-(-1+x)*(1+x)*a
)^(1/2)/a/(x^2-1)

________________________________________________________________________________________

Maxima [F(-2)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(arctanh(x)/(-a*x^2+a)^(1/2),x, algorithm="maxima")

[Out]

Exception raised: ValueError

________________________________________________________________________________________

Fricas [F]  time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (-\frac{\sqrt{-a x^{2} + a} \operatorname{artanh}\left (x\right )}{a x^{2} - a}, x\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(arctanh(x)/(-a*x^2+a)^(1/2),x, algorithm="fricas")

[Out]

integral(-sqrt(-a*x^2 + a)*arctanh(x)/(a*x^2 - a), x)

________________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\operatorname{atanh}{\left (x \right )}}{\sqrt{- a \left (x - 1\right ) \left (x + 1\right )}}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(atanh(x)/(-a*x**2+a)**(1/2),x)

[Out]

Integral(atanh(x)/sqrt(-a*(x - 1)*(x + 1)), x)

________________________________________________________________________________________

Giac [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\operatorname{artanh}\left (x\right )}{\sqrt{-a x^{2} + a}}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(arctanh(x)/(-a*x^2+a)^(1/2),x, algorithm="giac")

[Out]

integrate(arctanh(x)/sqrt(-a*x^2 + a), x)